package com.ph.shopping.facade.supplier.entity;

import javax.persistence.Column;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import com.ph.shopping.common.core.base.BaseEntity;

/**
 * @项目：phshopping-facade-Supplier
 *
 * @描述：供应商实体
 *
 * @作者： 舒豪
 *
 * @创建时间：2017年3月15日
 *
 * @Copyright @2017 by liuy
 */
@Table(name = "ph_supplier")
public class Supplier extends BaseEntity {
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 273433423349452846L;

	
	/**
     * 供应商名称
     */
    @Column(name="supplierName")
    @NotBlank(message="[供应商名称]不可为空")
   	@Length(max=50,message="[供应商名称]最大长度为50个字符")
    private String supplierName;

    /**
     * 供应商类型
     */
    @Column(name="supplierType")
    private String supplierType;
    
    /**
     * 联系电话
     */
    @Column(name="personTel")
    @NotBlank(message="[联系电话]不可为空")
   	@Length(max=30,message="[联系电话]最大长度为30个字符")
    private String personTel;
    
    /**
     * 联系人
     */
    @Column(name="personName")
    @NotBlank(message="[联系人]不可为空")
   	@Length(max=20,message="[联系人]最大长度为20个字符")
    private String personName;

    /**
     * 推广师姓名
     */
    @Column(name="promoterName")
    private String promoterName;

    /**
     * 推广师电话
     */
    @Column(name="promoterTel")
    private String promoterTel;
     
    /**
     * 详细地址
     */
    @Column(name="address")
    @NotBlank(message="[详细地址]不可为空")
   	@Length(max=50,message="[详细地址]最大长度为50个字符")
    private String address;

    /**
     * 营业执照
     */
    @Column(name="businessNumber")
    @NotBlank(message="[营业执照]不可为空")
    private String businessNumber;

    /**
     * 身份证Id
     */
    @Column(name="personIdCard")
    @NotBlank(message="[身份证]不可为空")
    private String personIdCard;

    /**
     * 状态 0待审核 1正常 2未通过 3冻结
     */
    @Column(name="status")
    private Integer status;

    /**
     * 创建人
     */
    @Column(name="createId")
    private Long createId;

    /**
     * 更新人
     */
    @Column(name="updateId")
    private Long updateId;
    
    /**
     * 是否可用 1 可用；2 不可用
     */
    @Column(name = "isable")
    private Byte isable;

    /**
     * 省Id
     */
    @Column(name="provinceId")
    private Long provinceId;

    /**
     * 市Id
     */
    @Column(name="cityId")
    private Long cityId;

    /**
     * 区Id
     */
    @Column(name="countyId")
    private Long countyId;

    /**
     * 社区Id
     */
    @Column(name="communityId")
    private Long communityId;

    /**
     * 区域Id（区域表换成ph_position表）
     */
    @Column(name="positionId")
    private Long positionId;
    
    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getPersonTel() {
        return personTel;
    }

    public void setPersonTel(String personTel) {
        this.personTel = personTel;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBusinessNumber() {
        return businessNumber;
    }

    public void setBusinessNumber(String businessNumber) {
        this.businessNumber = businessNumber;
    }

    public String getPersonID_card() {
        return personIdCard;
    }

    public void setPersonID_card(String personIdCard) {
        this.personIdCard = personIdCard;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

	public String getPromoterName() {
		return promoterName;
	}

	public void setPromoterName(String promoterName) {
		this.promoterName = promoterName;
	}

	public String getPromoterTel() {
		return promoterTel;
	}

	public void setPromoterTel(String promoterTel) {
		this.promoterTel = promoterTel;
	}

	public String getPersonIdCard() {
		return personIdCard;
	}

	public void setPersonIdCard(String personIdCard) {
		this.personIdCard = personIdCard;
	}

	public Byte getIsable() {
		return isable;
	}

	public void setIsable(Byte isable) {
		this.isable = isable;
	}

	public Long getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(Long provinceId) {
		this.provinceId = provinceId;
	}

	public Long getCityId() {
		return cityId;
	}

	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}

	public Long getCountyId() {
		return countyId;
	}

	public void setCountyId(Long countyId) {
		this.countyId = countyId;
	}

	public Long getCommunityId() {
		return communityId;
	}

	public void setCommunityId(Long communityId) {
		this.communityId = communityId;
	}

	public Long getCreateId() {
		return createId;
	}

	public void setCreateId(Long createId) {
		this.createId = createId;
	}

	public Long getUpdateId() {
		return updateId;
	}

	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}

	public String getSupplierType() {
		return supplierType;
	}

	public void setSupplierType(String supplierType) {
		this.supplierType = supplierType;
	}

	public Long getPositionId() {
		return positionId;
	}

	public void setPositionId(Long positionId) {
		this.positionId = positionId;
	}

    
}
